import { Column, Entity, PrimaryColumn, PrimaryGeneratedColumn } from "typeorm";

@Entity('account')
export class Account {

  /** 自增主键 */
  @PrimaryGeneratedColumn()
  id: number;

  @PrimaryColumn()
  uuid: string;

  @Column()
  username: string;

  @Column()
  password: string;

  @Column()
  identity: string;

  @Column({ name: 'created_time', type: 'timestamp'})
  createdTime: Date;

  @Column({ name: 'updated_time', type: 'timestamp'})
  updatedTime: Date;

  @Column({ name: 'is_deleted', type: 'tinyint'})
  isDeleted: number;
}